<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>伪类</title>
    <style>
      a:link {
        color: red;
      }

      a:visited {
        color: chocolate;
      }
    </style>
  </head>
  <body>
    <a href="#1">百度</a>
    <a href="#2">字节</a>
  </body>
</html>
